import java.util.Scanner;
public class Example11{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        String grade;
        switch (num/10){
            case 10:
                grade = "优秀";
                break;
            case 8:
                grade = "良好";
                break;
            case 7:
                grade = "一般";
                break;
            case 6:
                grade = "及格";
                break;
            default:
                grade = "不及格";
                break;
        }
        System.out.println(grade);
    }
}
